package com.example.exception;


/**
 * 描述:业务异常 用于在处理业务逻辑时，进行抛出的异常。
 * 作者:LevelCoder
 * 邮箱:LevelCoder@126.com
 * 版本:V1.0.0
 * 时间:2018/4/23
 */
public class BizException extends BaseUncheckedException {


    public BizException(String responseCode,String responseMessage ) {
        super(responseCode, responseMessage);
    }

    public BizException(String responseCode, String format, Object... args) {
        super(responseCode, format, args);
    }

    /**
     * 实例化异常
     */
    public static BizException wrap(String responseCode, String message, Object... args) {
        return new BizException(responseCode, message, args);
    }

    @Override
    public String toString() {
        return "BizException{" +
                "responseMessage='" + responseMessage + '\'' +
                ", responseCode='" + responseCode + '\'' +
                '}';
    }
}
